{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\research\works\주제62_이혼과 보수화\political psychology\data\analysis_code_stata.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}17 Sep 2025, 16:19:49

{com}. tsset id year
{res}{txt}{col 8}panel variable:  {res}id (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 2009 to 2021, but with gaps
{txt}{col 17}delta:  {res}1 unit

{com}. 
. gen ln_house_price = ln( housing_price )
{txt}(693 missing values generated)

{com}. 
. gen ln_income = ln( income_1 )
{txt}(33 missing values generated)

{com}. 
. 
. 
. xtreg ideology divorce ln_income homeownership ln_house_price education sex age religion i.year, fe
{p 0 6 2}{txt}note: sex omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     9,436
{txt}Group variable: {res}id{txt}{col 49}Number of groups{col 67}={col 69}{res}     4,145

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0122{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0002{col 63}{txt}avg{col 67}={col 69}{res}       2.3
{txt}     overall = {res}0.0001{col 63}{txt}max{col 67}={col 69}{res}         5

{txt}{col 49}F({res}11{txt},{res}5280{txt}){col 67}={col 70}{res}     5.94
{txt}corr(u_i, Xb){col 16}= {res}-0.2290{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      ideology{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}divorce {c |}{col 16}{res}{space 2}-.4505174{col 28}{space 2} .1094362{col 39}{space 1}   -4.12{col 48}{space 3}0.000{col 56}{space 4}-.6650575{col 69}{space 3}-.2359772
{txt}{space 5}ln_income {c |}{col 16}{res}{space 2} .0094015{col 28}{space 2} .0318648{col 39}{space 1}    0.30{col 48}{space 3}0.768{col 56}{space 4}-.0530668{col 69}{space 3} .0718698
{txt}{space 1}homeownership {c |}{col 16}{res}{space 2} -.083942{col 28}{space 2} .0507527{col 39}{space 1}   -1.65{col 48}{space 3}0.098{col 56}{space 4}-.1834383{col 69}{space 3} .0155544
{txt}ln_house_price {c |}{col 16}{res}{space 2}-.0047295{col 28}{space 2} .0212062{col 39}{space 1}   -0.22{col 48}{space 3}0.824{col 56}{space 4}-.0463025{col 69}{space 3} .0368434
{txt}{space 5}education {c |}{col 16}{res}{space 2} .1227501{col 28}{space 2}  .126992{col 39}{space 1}    0.97{col 48}{space 3}0.334{col 56}{space 4}-.1262067{col 69}{space 3} .3717068
{txt}{space 11}sex {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 11}age {c |}{col 16}{res}{space 2} .0491354{col 28}{space 2} .0359909{col 39}{space 1}    1.37{col 48}{space 3}0.172{col 56}{space 4}-.0214216{col 69}{space 3} .1196924
{txt}{space 6}religion {c |}{col 16}{res}{space 2} .0007852{col 28}{space 2} .0367098{col 39}{space 1}    0.02{col 48}{space 3}0.983{col 56}{space 4}-.0711812{col 69}{space 3} .0727517
{txt}{space 14} {c |}
{space 10}year {c |}
{space 9}2012  {c |}{col 16}{res}{space 2} .1723548{col 28}{space 2} .0440361{col 39}{space 1}    3.91{col 48}{space 3}0.000{col 56}{space 4} .0860258{col 69}{space 3} .2586839
{txt}{space 9}2015  {c |}{col 16}{res}{space 2} .1394135{col 28}{space 2} .0487499{col 39}{space 1}    2.86{col 48}{space 3}0.004{col 56}{space 4} .0438436{col 69}{space 3} .2349834
{txt}{space 9}2018  {c |}{col 16}{res}{space 2}-.0167777{col 28}{space 2} .0554277{col 39}{space 1}   -0.30{col 48}{space 3}0.762{col 56}{space 4}-.1254389{col 69}{space 3} .0918836
{txt}{space 9}2021  {c |}{col 16}{res}{space 2} .0357588{col 28}{space 2} .0627685{col 39}{space 1}    0.57{col 48}{space 3}0.569{col 56}{space 4}-.0872934{col 69}{space 3}  .158811
{txt}{space 14} {c |}
{space 9}_cons {c |}{col 16}{res}{space 2} 2.578844{col 28}{space 2} .4720398{col 39}{space 1}    5.46{col 48}{space 3}0.000{col 56}{space 4} 1.653451{col 69}{space 3} 3.504238
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       sigma_u {c |} {res} .81620553
       {txt}sigma_e {c |} {res} .80969993
           {txt}rho {c |} {res} .50400115{txt}   (fraction of variance due to u_i)
{hline 15}{c BT}{hline 64}
F test that all u_i=0: F({res}4144{txt}, {res}5280{txt}) = {res}1.68{col 62}{txt}Prob > F = {res}0.0000

{com}. import excel "C:\research\works\주제62_이혼과 보수화\political psychology\data\df_analysis_2.xlsx", sheet("Sheet1") firstrow clear
{res}
{com}. logit conservative divorce income education sex age urban i.year

{res}{txt}Iteration 0:{space 3}log likelihood = {res:-12426.853}  
Iteration 1:{space 3}log likelihood = {res: -12186.52}  
Iteration 2:{space 3}log likelihood = {res:-12185.553}  
Iteration 3:{space 3}log likelihood = {res:-12185.553}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}    19,189
{txt}{col 49}LR chi2({res}20{txt}){col 67}= {res}    482.60
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log likelihood = {res}-12185.553{txt}{col 49}Pseudo R2{col 67}= {res}    0.0194

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}conservative{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}divorce {c |}{col 14}{res}{space 2}-.1857264{col 26}{space 2} .0862651{col 37}{space 1}   -2.15{col 46}{space 3}0.031{col 54}{space 4}-.3548029{col 67}{space 3}-.0166499
{txt}{space 6}income {c |}{col 14}{res}{space 2} .0054798{col 26}{space 2} .0034587{col 37}{space 1}    1.58{col 46}{space 3}0.113{col 54}{space 4}-.0012991{col 67}{space 3} .0122587
{txt}{space 3}education {c |}{col 14}{res}{space 2}-.0047288{col 26}{space 2} .0145476{col 37}{space 1}   -0.33{col 46}{space 3}0.745{col 54}{space 4}-.0332416{col 67}{space 3} .0237841
{txt}{space 9}sex {c |}{col 14}{res}{space 2}-.0184785{col 26}{space 2} .0313428{col 37}{space 1}   -0.59{col 46}{space 3}0.555{col 54}{space 4}-.0799092{col 67}{space 3} .0429523
{txt}{space 9}age {c |}{col 14}{res}{space 2} .2118658{col 26}{space 2} .0138228{col 37}{space 1}   15.33{col 46}{space 3}0.000{col 54}{space 4} .1847736{col 67}{space 3}  .238958
{txt}{space 7}urban {c |}{col 14}{res}{space 2}  .070329{col 26}{space 2} .0160111{col 37}{space 1}    4.39{col 46}{space 3}0.000{col 54}{space 4} .0389478{col 67}{space 3} .1017102
{txt}{space 12} {c |}
{space 8}year {c |}
{space 7}2004  {c |}{col 14}{res}{space 2} -.188431{col 26}{space 2} .0854036{col 37}{space 1}   -2.21{col 46}{space 3}0.027{col 54}{space 4} -.355819{col 67}{space 3}-.0210429
{txt}{space 7}2005  {c |}{col 14}{res}{space 2}-.2549499{col 26}{space 2} .0815931{col 37}{space 1}   -3.12{col 46}{space 3}0.002{col 54}{space 4}-.4148694{col 67}{space 3}-.0950304
{txt}{space 7}2006  {c |}{col 14}{res}{space 2}-.2353023{col 26}{space 2} .0809503{col 37}{space 1}   -2.91{col 46}{space 3}0.004{col 54}{space 4} -.393962{col 67}{space 3}-.0766427
{txt}{space 7}2007  {c |}{col 14}{res}{space 2}-.4141364{col 26}{space 2} .0841611{col 37}{space 1}   -4.92{col 46}{space 3}0.000{col 54}{space 4}-.5790892{col 67}{space 3}-.2491837
{txt}{space 7}2008  {c |}{col 14}{res}{space 2}-.2391649{col 26}{space 2} .0817012{col 37}{space 1}   -2.93{col 46}{space 3}0.003{col 54}{space 4}-.3992964{col 67}{space 3}-.0790334
{txt}{space 7}2009  {c |}{col 14}{res}{space 2}-.3639439{col 26}{space 2} .0818582{col 37}{space 1}   -4.45{col 46}{space 3}0.000{col 54}{space 4}-.5243831{col 67}{space 3}-.2035047
{txt}{space 7}2010  {c |}{col 14}{res}{space 2}-.4284058{col 26}{space 2} .0845356{col 37}{space 1}   -5.07{col 46}{space 3}0.000{col 54}{space 4}-.5940926{col 67}{space 3} -.262719
{txt}{space 7}2011  {c |}{col 14}{res}{space 2}-.3851721{col 26}{space 2} .0843974{col 37}{space 1}   -4.56{col 46}{space 3}0.000{col 54}{space 4}-.5505879{col 67}{space 3}-.2197563
{txt}{space 7}2012  {c |}{col 14}{res}{space 2}-.3843733{col 26}{space 2} .0844677{col 37}{space 1}   -4.55{col 46}{space 3}0.000{col 54}{space 4} -.549927{col 67}{space 3}-.2188197
{txt}{space 7}2013  {c |}{col 14}{res}{space 2}-.3788728{col 26}{space 2} .0858629{col 37}{space 1}   -4.41{col 46}{space 3}0.000{col 54}{space 4} -.547161{col 67}{space 3}-.2105846
{txt}{space 7}2014  {c |}{col 14}{res}{space 2}-.3828303{col 26}{space 2}  .084003{col 37}{space 1}   -4.56{col 46}{space 3}0.000{col 54}{space 4}-.5474731{col 67}{space 3}-.2181875
{txt}{space 7}2016  {c |}{col 14}{res}{space 2}-.5939066{col 26}{space 2} .0943052{col 37}{space 1}   -6.30{col 46}{space 3}0.000{col 54}{space 4}-.7787414{col 67}{space 3}-.4090717
{txt}{space 7}2018  {c |}{col 14}{res}{space 2}  -1.0039{col 26}{space 2} .1018575{col 37}{space 1}   -9.86{col 46}{space 3}0.000{col 54}{space 4}-1.203537{col 67}{space 3}-.8042628
{txt}{space 7}2021  {c |}{col 14}{res}{space 2} .0003696{col 26}{space 2} .0823847{col 37}{space 1}    0.00{col 46}{space 3}0.996{col 54}{space 4}-.1611014{col 67}{space 3} .1618406
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}-1.131308{col 26}{space 2} .1039736{col 37}{space 1}  -10.88{col 46}{space 3}0.000{col 54}{space 4}-1.335092{col 67}{space 3}-.9275231
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. import excel "C:\research\works\주제62_이혼과 보수화\political psychology\data\df_analysis_3.xlsx", sheet("Sheet2") firstrow clear
{res}
{com}. gen ln_economy = ln( average_premium )

. 
. encode district, gen(district_1)

. 
. xtset district_1 year
{res}{txt}{col 8}panel variable:  {res}district_1 (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 2012 to 2022, but with gaps
{txt}{col 17}delta:  {res}1 unit

{com}. 
. 
. 
. 
. 
. reg conservativeelectors divorce_rate ln_economy palma high_edu house mean_age gender_ratio urbanization turn_out i.presidential i.capital_region i.honam_region i.youngnam_region i.gangwon_region i.chungcheong_region

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,260
{txt}{hline 13}{c +}{hline 34}   F(15, 1244)     = {res}   345.01
{txt}       Model {c |} {res} 23.8032593        15  1.58688396   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 5.72173936     1,244  .004599469   {txt}R-squared       ={res}    0.8062
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.8039
{txt}       Total {c |} {res} 29.5249987     1,259  .023451151   {txt}Root MSE        =   {res} .06782

{txt}{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}conservativeelectors{col 22}{c |}      Coef.{col 34}   Std. Err.{col 46}      t{col 54}   P>|t|{col 62}     [95% Con{col 75}f. Interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}divorce_rate {c |}{col 22}{res}{space 2}-.0130092{col 34}{space 2} .0068271{col 45}{space 1}   -1.91{col 54}{space 3}0.057{col 62}{space 4}-.0264032{col 75}{space 3} .0003848
{txt}{space 10}ln_economy {c |}{col 22}{res}{space 2} .0814414{col 34}{space 2} .0214935{col 45}{space 1}    3.79{col 54}{space 3}0.000{col 62}{space 4} .0392739{col 75}{space 3} .1236089
{txt}{space 15}palma {c |}{col 22}{res}{space 2}-.0056035{col 34}{space 2} .0022849{col 45}{space 1}   -2.45{col 54}{space 3}0.014{col 62}{space 4}-.0100861{col 75}{space 3}-.0011209
{txt}{space 12}high_edu {c |}{col 22}{res}{space 2} .0034051{col 34}{space 2} .0002062{col 45}{space 1}   16.51{col 54}{space 3}0.000{col 62}{space 4} .0030005{col 75}{space 3} .0038096
{txt}{space 15}house {c |}{col 22}{res}{space 2}-.0120014{col 34}{space 2} .0022199{col 45}{space 1}   -5.41{col 54}{space 3}0.000{col 62}{space 4}-.0163565{col 75}{space 3}-.0076462
{txt}{space 12}mean_age {c |}{col 22}{res}{space 2} .0077598{col 34}{space 2} .0007786{col 45}{space 1}    9.97{col 54}{space 3}0.000{col 62}{space 4} .0062324{col 75}{space 3} .0092873
{txt}{space 8}gender_ratio {c |}{col 22}{res}{space 2}-.0000551{col 34}{space 2} .0000866{col 45}{space 1}   -0.64{col 54}{space 3}0.525{col 62}{space 4}-.0002249{col 75}{space 3} .0001148
{txt}{space 8}urbanization {c |}{col 22}{res}{space 2}-.0010825{col 34}{space 2} .0001572{col 45}{space 1}   -6.89{col 54}{space 3}0.000{col 62}{space 4}-.0013909{col 75}{space 3}-.0007741
{txt}{space 12}turn_out {c |}{col 22}{res}{space 2} .2397777{col 34}{space 2} .0713033{col 45}{space 1}    3.36{col 54}{space 3}0.001{col 62}{space 4} .0998896{col 75}{space 3} .3796658
{txt}{space 6}1.presidential {c |}{col 22}{res}{space 2} .0250955{col 34}{space 2}  .008993{col 45}{space 1}    2.79{col 54}{space 3}0.005{col 62}{space 4} .0074523{col 75}{space 3} .0427387
{txt}{space 4}1.capital_region {c |}{col 22}{res}{space 2} .0154704{col 34}{space 2} .0308824{col 45}{space 1}    0.50{col 54}{space 3}0.616{col 62}{space 4}-.0451169{col 75}{space 3} .0760576
{txt}{space 6}1.honam_region {c |}{col 22}{res}{space 2}-.2334681{col 34}{space 2} .0312384{col 45}{space 1}   -7.47{col 54}{space 3}0.000{col 62}{space 4}-.2947539{col 75}{space 3}-.1721823
{txt}{space 3}1.youngnam_region {c |}{col 22}{res}{space 2} .1348787{col 34}{space 2} .0310681{col 45}{space 1}    4.34{col 54}{space 3}0.000{col 62}{space 4}  .073927{col 75}{space 3} .1958305
{txt}{space 4}1.gangwon_region {c |}{col 22}{res}{space 2}  .054933{col 34}{space 2} .0317702{col 45}{space 1}    1.73{col 54}{space 3}0.084{col 62}{space 4}-.0073961{col 75}{space 3} .1172622
{txt}1.chungcheong_region {c |}{col 22}{res}{space 2} .0361038{col 34}{space 2} .0311771{col 45}{space 1}    1.16{col 54}{space 3}0.247{col 62}{space 4}-.0250617{col 75}{space 3} .0972693
{txt}{space 15}_cons {c |}{col 22}{res}{space 2}-1.037457{col 34}{space 2} .2474625{col 45}{space 1}   -4.19{col 54}{space 3}0.000{col 62}{space 4}-1.522947{col 75}{space 3}-.5519674
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. 
. 
. fracreg probit conservativeelectors divorce_rate ln_economy palma high_edu house mean_age gender_ratio urbanization turn_out i.presidential i.capital_region i.honam_region i.youngnam_region i.gangwon_region i.chungcheong_region

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1000.0088}  
Iteration 1:{space 3}log pseudolikelihood = {res:-712.24865}  
Iteration 2:{space 3}log pseudolikelihood = {res:-707.90514}  
Iteration 3:{space 3}log pseudolikelihood = {res:-707.88574}  
Iteration 4:{space 3}log pseudolikelihood = {res:-707.88574}  
{res}
{txt}Fractional probit regression{col 49}Number of obs{col 67}= {res}     1,260
{txt}{col 49}Wald chi2({res}15{txt}){col 67}= {res}   3075.55
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-707.88574{txt}{col 49}Pseudo R2{col 67}= {res}    0.0838

{txt}{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}conservativeelectors{col 22}{c |}      Coef.{col 34}   Std. Err.{col 46}      z{col 54}   P>|z|{col 62}     [95% Con{col 75}f. Interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}divorce_rate {c |}{col 22}{res}{space 2}-.0414601{col 34}{space 2} .0195009{col 45}{space 1}   -2.13{col 54}{space 3}0.033{col 62}{space 4}-.0796812{col 75}{space 3} -.003239
{txt}{space 10}ln_economy {c |}{col 22}{res}{space 2} .2285606{col 34}{space 2} .0706999{col 45}{space 1}    3.23{col 54}{space 3}0.001{col 62}{space 4} .0899914{col 75}{space 3} .3671299
{txt}{space 15}palma {c |}{col 22}{res}{space 2}-.0155083{col 34}{space 2} .0083368{col 45}{space 1}   -1.86{col 54}{space 3}0.063{col 62}{space 4} -.031848{col 75}{space 3} .0008315
{txt}{space 12}high_edu {c |}{col 22}{res}{space 2} .0096651{col 34}{space 2} .0006713{col 45}{space 1}   14.40{col 54}{space 3}0.000{col 62}{space 4} .0083493{col 75}{space 3} .0109809
{txt}{space 15}house {c |}{col 22}{res}{space 2}-.0425622{col 34}{space 2} .0070998{col 45}{space 1}   -5.99{col 54}{space 3}0.000{col 62}{space 4}-.0564776{col 75}{space 3}-.0286468
{txt}{space 12}mean_age {c |}{col 22}{res}{space 2} .0238198{col 34}{space 2}  .002188{col 45}{space 1}   10.89{col 54}{space 3}0.000{col 62}{space 4} .0195314{col 75}{space 3} .0281081
{txt}{space 8}gender_ratio {c |}{col 22}{res}{space 2}-.0000583{col 34}{space 2} .0003139{col 45}{space 1}   -0.19{col 54}{space 3}0.853{col 62}{space 4}-.0006735{col 75}{space 3} .0005568
{txt}{space 8}urbanization {c |}{col 22}{res}{space 2}-.0033288{col 34}{space 2} .0004203{col 45}{space 1}   -7.92{col 54}{space 3}0.000{col 62}{space 4}-.0041527{col 75}{space 3} -.002505
{txt}{space 12}turn_out {c |}{col 22}{res}{space 2} .6367356{col 34}{space 2} .2612752{col 45}{space 1}    2.44{col 54}{space 3}0.015{col 62}{space 4} .1246455{col 75}{space 3} 1.148826
{txt}{space 6}1.presidential {c |}{col 22}{res}{space 2} .0949594{col 34}{space 2} .0301186{col 45}{space 1}    3.15{col 54}{space 3}0.002{col 62}{space 4} .0359281{col 75}{space 3} .1539907
{txt}{space 4}1.capital_region {c |}{col 22}{res}{space 2}  .042906{col 34}{space 2} .0743283{col 45}{space 1}    0.58{col 54}{space 3}0.564{col 62}{space 4}-.1027747{col 75}{space 3} .1885867
{txt}{space 6}1.honam_region {c |}{col 22}{res}{space 2}-.9835893{col 34}{space 2} .0843371{col 45}{space 1}  -11.66{col 54}{space 3}0.000{col 62}{space 4}-1.148887{col 75}{space 3}-.8182916
{txt}{space 3}1.youngnam_region {c |}{col 22}{res}{space 2} .3702192{col 34}{space 2} .0750411{col 45}{space 1}    4.93{col 54}{space 3}0.000{col 62}{space 4} .2231414{col 75}{space 3} .5172971
{txt}{space 4}1.gangwon_region {c |}{col 22}{res}{space 2} .1509946{col 34}{space 2} .0769308{col 45}{space 1}    1.96{col 54}{space 3}0.050{col 62}{space 4}  .000213{col 75}{space 3} .3017762
{txt}1.chungcheong_region {c |}{col 22}{res}{space 2} .1037105{col 34}{space 2} .0752403{col 45}{space 1}    1.38{col 54}{space 3}0.168{col 62}{space 4}-.0437578{col 75}{space 3} .2511789
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} -4.32353{col 34}{space 2} .7987315{col 45}{space 1}   -5.41{col 54}{space 3}0.000{col 62}{space 4}-5.889015{col 75}{space 3}-2.758045
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. 
. xtreg conservativeelectors divorce_rate ln_economy palma high_edu house mean_age gender_ratio urbanization turn_out i.presidential i.capital_region i.honam_region i.youngnam_region i.gangwon_region i.chungcheong_region, re
{res}
{txt}Random-effects GLS regression                   Number of obs     = {res}     1,260
{txt}Group variable: {res}district_1                      {txt}Number of groups  = {res}       253

{txt}R-sq:                                           Obs per group:
     within  = {res}0.5655                                         {txt}min = {res}         1
{txt}     between = {res}0.8836                                         {txt}avg = {res}       5.0
{txt}     overall = {res}0.8038                                         {txt}max = {res}         5

                                                {txt}Wald chi2({res}15{txt})     =  {res}  3259.53
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2       =     {res}0.0000

{txt}{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}conservativeelectors{col 22}{c |}      Coef.{col 34}   Std. Err.{col 46}      z{col 54}   P>|z|{col 62}     [95% Con{col 75}f. Interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 8}divorce_rate {c |}{col 22}{res}{space 2}-.0234036{col 34}{space 2} .0074308{col 45}{space 1}   -3.15{col 54}{space 3}0.002{col 62}{space 4}-.0379677{col 75}{space 3}-.0088395
{txt}{space 10}ln_economy {c |}{col 22}{res}{space 2} .1139318{col 34}{space 2} .0226963{col 45}{space 1}    5.02{col 54}{space 3}0.000{col 62}{space 4} .0694478{col 75}{space 3} .1584158
{txt}{space 15}palma {c |}{col 22}{res}{space 2}-.0124303{col 34}{space 2} .0028436{col 45}{space 1}   -4.37{col 54}{space 3}0.000{col 62}{space 4}-.0180036{col 75}{space 3} -.006857
{txt}{space 12}high_edu {c |}{col 22}{res}{space 2}  .003735{col 34}{space 2} .0001875{col 45}{space 1}   19.92{col 54}{space 3}0.000{col 62}{space 4} .0033675{col 75}{space 3} .0041026
{txt}{space 15}house {c |}{col 22}{res}{space 2}-.0106998{col 34}{space 2} .0027492{col 45}{space 1}   -3.89{col 54}{space 3}0.000{col 62}{space 4}-.0160881{col 75}{space 3}-.0053115
{txt}{space 12}mean_age {c |}{col 22}{res}{space 2} .0073407{col 34}{space 2} .0009598{col 45}{space 1}    7.65{col 54}{space 3}0.000{col 62}{space 4} .0054595{col 75}{space 3} .0092219
{txt}{space 8}gender_ratio {c |}{col 22}{res}{space 2} -.000171{col 34}{space 2} .0000794{col 45}{space 1}   -2.15{col 54}{space 3}0.031{col 62}{space 4}-.0003266{col 75}{space 3}-.0000155
{txt}{space 8}urbanization {c |}{col 22}{res}{space 2}-.0010735{col 34}{space 2} .0001966{col 45}{space 1}   -5.46{col 54}{space 3}0.000{col 62}{space 4}-.0014588{col 75}{space 3}-.0006882
{txt}{space 12}turn_out {c |}{col 22}{res}{space 2} .3276078{col 34}{space 2}  .070934{col 45}{space 1}    4.62{col 54}{space 3}0.000{col 62}{space 4} .1885798{col 75}{space 3} .4666358
{txt}{space 6}1.presidential {c |}{col 22}{res}{space 2} .0166637{col 34}{space 2} .0086997{col 45}{space 1}    1.92{col 54}{space 3}0.055{col 62}{space 4}-.0003874{col 75}{space 3} .0337147
{txt}{space 4}1.capital_region {c |}{col 22}{res}{space 2}  .025659{col 34}{space 2} .0450634{col 45}{space 1}    0.57{col 54}{space 3}0.569{col 62}{space 4}-.0626636{col 75}{space 3} .1139816
{txt}{space 6}1.honam_region {c |}{col 22}{res}{space 2}-.2273525{col 34}{space 2} .0455685{col 45}{space 1}   -4.99{col 54}{space 3}0.000{col 62}{space 4}-.3166651{col 75}{space 3}-.1380398
{txt}{space 3}1.youngnam_region {c |}{col 22}{res}{space 2}  .142921{col 34}{space 2} .0453084{col 45}{space 1}    3.15{col 54}{space 3}0.002{col 62}{space 4} .0541182{col 75}{space 3} .2317238
{txt}{space 4}1.gangwon_region {c |}{col 22}{res}{space 2} .0669823{col 34}{space 2} .0463409{col 45}{space 1}    1.45{col 54}{space 3}0.148{col 62}{space 4}-.0238442{col 75}{space 3} .1578088
{txt}1.chungcheong_region {c |}{col 22}{res}{space 2} .0469912{col 34}{space 2} .0454903{col 45}{space 1}    1.03{col 54}{space 3}0.302{col 62}{space 4}-.0421681{col 75}{space 3} .1361505
{txt}{space 15}_cons {c |}{col 22}{res}{space 2}-1.419509{col 34}{space 2} .2529844{col 45}{space 1}   -5.61{col 54}{space 3}0.000{col 62}{space 4}-1.915349{col 75}{space 3}-.9236689
{txt}{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
             sigma_u {c |} {res} .03510058
             {txt}sigma_e {c |} {res} .05608181
                 {txt}rho {c |} {res} .28146872{txt}   (fraction of variance due to u_i)
{hline 21}{c BT}{hline 64}

{com}. 
. 
. 
. xtreg conservativeelectors divorce_rate ln_economy palma high_edu house mean_age gender_ratio urbanization turn_out i.presidential , fe
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}     1,260
{txt}Group variable: {res}district_1{txt}{col 49}Number of groups{col 67}={col 69}{res}       253

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.5858{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0037{col 63}{txt}avg{col 67}={col 69}{res}       5.0
{txt}     overall = {res}0.0690{col 63}{txt}max{col 67}={col 69}{res}         5

{txt}{col 49}F({res}10{txt},{res}997{txt}){col 67}={col 70}{res}   140.99
{txt}corr(u_i, Xb){col 16}= {res}-0.2569{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}conservative~s{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}divorce_rate {c |}{col 16}{res}{space 2}-.0463623{col 28}{space 2} .0095736{col 39}{space 1}   -4.84{col 48}{space 3}0.000{col 56}{space 4}-.0651489{col 69}{space 3}-.0275757
{txt}{space 4}ln_economy {c |}{col 16}{res}{space 2} .2520532{col 28}{space 2} .0424879{col 39}{space 1}    5.93{col 48}{space 3}0.000{col 56}{space 4} .1686773{col 69}{space 3} .3354291
{txt}{space 9}palma {c |}{col 16}{res}{space 2}-.0602894{col 28}{space 2} .0079782{col 39}{space 1}   -7.56{col 48}{space 3}0.000{col 56}{space 4}-.0759454{col 69}{space 3}-.0446334
{txt}{space 6}high_edu {c |}{col 16}{res}{space 2} .0044496{col 28}{space 2} .0002025{col 39}{space 1}   21.97{col 48}{space 3}0.000{col 56}{space 4} .0040522{col 69}{space 3}  .004847
{txt}{space 9}house {c |}{col 16}{res}{space 2}-.0087268{col 28}{space 2} .0046277{col 39}{space 1}   -1.89{col 48}{space 3}0.060{col 56}{space 4}-.0178079{col 69}{space 3} .0003544
{txt}{space 6}mean_age {c |}{col 16}{res}{space 2}-.0001203{col 28}{space 2} .0023797{col 39}{space 1}   -0.05{col 48}{space 3}0.960{col 56}{space 4}  -.00479{col 69}{space 3} .0045495
{txt}{space 2}gender_ratio {c |}{col 16}{res}{space 2}-.0003767{col 28}{space 2}  .000085{col 39}{space 1}   -4.43{col 48}{space 3}0.000{col 56}{space 4}-.0005434{col 69}{space 3}  -.00021
{txt}{space 2}urbanization {c |}{col 16}{res}{space 2} -.000605{col 28}{space 2} .0003395{col 39}{space 1}   -1.78{col 48}{space 3}0.075{col 56}{space 4}-.0012711{col 69}{space 3} .0000612
{txt}{space 6}turn_out {c |}{col 16}{res}{space 2} .4670087{col 28}{space 2} .0803699{col 39}{space 1}    5.81{col 48}{space 3}0.000{col 56}{space 4} .3092951{col 69}{space 3} .6247223
{txt}1.presidential {c |}{col 16}{res}{space 2} .0033695{col 28}{space 2} .0097597{col 39}{space 1}    0.35{col 48}{space 3}0.730{col 56}{space 4}-.0157824{col 69}{space 3} .0225214
{txt}{space 9}_cons {c |}{col 16}{res}{space 2}-2.634764{col 28}{space 2} .3992979{col 39}{space 1}   -6.60{col 48}{space 3}0.000{col 56}{space 4}-3.418325{col 69}{space 3}-1.851203
{txt}{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
       sigma_u {c |} {res} .14389822
       {txt}sigma_e {c |} {res} .05608181
           {txt}rho {c |} {res} .86813738{txt}   (fraction of variance due to u_i)
{hline 15}{c BT}{hline 64}
F test that all u_i=0: F({res}252{txt}, {res}997{txt}) = {res}23.89{col 62}{txt}Prob > F = {res}0.0000

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\research\works\주제62_이혼과 보수화\political psychology\data\analysis_code_stata.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}17 Sep 2025, 16:21:00
{txt}{.-}
{smcl}
{txt}{sf}{ul off}